package com.cssw.fyzb.core.dao.user;


import com.cssw.fyzb.core.model.dodb.UserOperLog;
import com.ydn.dbframe.plugin.activerecord.Page;
import com.ydn.dbframe.plugin.activerecord.parse.SqlParse;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @Auther: zzf
 * @Date: 2020/12/3 10:17
 * @Description:
 */
@Repository
public class UserOperLogDaoImpl implements UserOperLogDao {

    @Override
    public Page<UserOperLog> list(int page, int limit, Map param) {
        SqlParse sqlParse = new SqlParse(param);
        sqlParse.addSQL("select * from t_user_oper_log where user_id=:user_id order by create_time desc");
        return UserOperLog.dao.paginate(page, limit, sqlParse);
    }
}
